package org.jeemp.rest;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@Slf4j
@RestController
@RequestMapping("/api/security")
@Api(tags = "系统授权接口")

public class SecurityController {

    @ApiOperation("安全验证")
    @GetMapping(value = "/principal")
    public Map<String,Object> login(){
        Map map = new HashMap();
        map.put("msg","测试数据");
        map.put("code",0);
        return map;
    }

}
